package com.xbenben.project.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xbenben.project.common.model.AbstractFacadeResp;
import com.xbenben.project.common.model.DefaultFacadeResponse;
import com.xbenben.project.demo.bean.Address;
import com.xbenben.project.demo.mapper.AddressMapper;
import com.xbenben.project.demo.service.DemoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author yu.zhijia
 * Date:2022/12/27 22:16
 **/
//extends ServiceImpl<AddressMapper, Address> implements DemoService
@Service("DemoServiceImpl")
public class DemoServiceImpl extends ServiceImpl<AddressMapper, Address> implements DemoService {


    @Resource
    private AddressMapper addressMapper;

    @Override
    public AbstractFacadeResp<Address> addUser() {
        return new DefaultFacadeResponse<Address>( true,new Address(123, "123123"));
    }
}
